#pragma once

#include <QWidget>
#include "ui_DetailWindow.h"
#include <QPushButton>
#include <string>
#include <QEvent>
#include "smallbar.h"

using namespace std;

class DetailWindow : public QWidget
{
	Q_OBJECT

public:
	DetailWindow(QWidget *parent = Q_NULLPTR);
	~DetailWindow();

	QString  msg;

	string qstringTostring(QString qstring)
	{
		return (const char*)qstring.toLocal8Bit();
	}

	QString stringToqstring(string str)
	{
		return QString::fromLocal8Bit(str.data());
	}

signals:
	void sendMsg(string msg);

private slots:
	void on_pushButton_clicked();

	void on_textEdit_textChanged();

private:
	Ui::DetailWindow ui;
};
